home *** CD-ROM | disk | FTP | other *** search
-
- UTIL16.TXT
-
- Using the Utilities in UTIL16 with SoftICE 3.0
-
-
- -----------------------------------------------------------------
- Table Of Contents
- -----------------------------------------------------------------
- * What's in UTIL16
- * Debugging 16-bit DOS Programs
- * Debugging 16-bit Borland Windows Programs
- * UTIL16 Command Syntax
-
-
- What's in UTIL16
- ----------------
-
-
- SoftICE 3.0 replaces all the separate utilities you needed in prior
- versions for Windows NT and Windows 95 with an integrated symbol loader
- (LOADER32.EXE) and a utility for batch loading (NMSYM.EXE). They create
- and load a new symbol file format (.NMS) that contains type information
- and supports local data and structures. LOADER32 and NMSYM support 32-
- bit Windows programs in a variety of debug formats, and 16-bit Windows
- programs in CodeView debug format. They can load .SYM files, but you
- will not have access to locals and structures.
-
- UTIL16 contains the utilities you use to load DOS programs and 16-bit
- Windows programs in Borland debug format. You won't need these utilities
- for debugging most other programs. However, if you build your module
- with debug formats that LOADER32 can't translate into a .NMS symbol
- file, you may be able to use the utilities in UTIL16 to create a .SYM
- file that LOADER32 can load.
-
- UTIL16 includes these programs:
-
- MSYM.EXE - converts a .MAP file to a .SYM file
- DLDR.EXE - loads DOS programs, symbols and source into SoftICE
- WLDR.EXE - loads Windows programs, symbols and source into SoftICE
-
-
- * Debugging 16-bit DOS Programs
- -------------------------------
-
- SoftICE reads symbolic information directly from a 16-bit DOS .EXE file
- that is built with debug information in CodeView or Borland format. For
- .COM files, SoftICE reads debug information only from a .SYM file. To
- create a .SYM file, you need to extract public symbol and line number
- information from the .MAP file. Add the appropriate linker switch to
- generate a .MAP file, then run the MSYM.EXE utility to generate a .SYM
- file.
-
- To generate CodeView debug information:
- MASM 6.11 compile: /Zi link: /CO
- Microsoft Visual C++ 1.52 compile: /Z7 link: /CO
- Watcom C++ 10.5 compile: -hc -d3
- link: DEBUG CODEVIEW OPTION CVPACK
- Symantec C++ 7.2 compile: -g link: /CO
-
- To generate Borland debug information:
- Borland C++ 4.5 compile: /v link: /v
-
- Use DLDR.EXE to load your program. The file extension (or lack of
- extension) you pass to DLDR determines what program elements get loaded:
-
- DLDR myfile (no extension, loads executable, symbols and source)
- DLDR myfile.sym (loads symbols and source, but not the executable)
- DLDR myfile.exe (loads the executable, but no symbols or source)
-
-
- Debugging 16-bit Borland Windows Programs
- -----------------------------------------
-
- 1) Compile and link your program with debug information.
-
- 2) Load your program with WLDR.EXE.
-
-
- UTIL16 Command Syntax
- ---------------------
-
- MSYM.EXE - Converts .MAP files to .SYM files
- --------
- Usage: MSYM file_name
-
- DLDR.EXE - Loads symbols for DOS programs
- --------
- Usage: DLDR file-name[.EXE | .SYM]
- .EXE - load .EXE file only (NO SYMBOLS)
- .SYM - load symbol file only
- No extension - Load both program & symbols
-
- WLDR.EXE - Loads symbols, source and executables for Windows programs
- --------
- Does not provide locals and structures support. Obsolete for programs
- built with Microsoft compilers. Only needed for 16-bit Borland.
- Usage:
- Run WLDR. Enter the name of the program in the dialog box, including the
- file extension. Mark or clear the check boxes to set what to load:
- Symbols Only - Check if you don't want to load the executable (i.e. you
- are debugging a DLL or dynamically loaded driver).
- No Source - Check if you want to load symbol names but not source code.
-
-
-
-
- -----------------------------------------------------------------
- Copyright 1996 NuMega Technologies, Inc.
- 11/21/96
-